package test.core.fun;

import org.junit.Test;

import hyl.core.fun.MyByte;

public class testbit {
	 @Test
	public void test1_0() {
		byte[] b1 = MyByte.binToBytes("1000010000010");
		//byte[] b2 = MyByte.binToBytes("0100001000100");
		//byte[] b3 = MyByte.orBits(b1, b2);
		byte[] b3 = b1.clone();
		System.out.println("-1-" + MyByte.bytesToBin(b3));

	}
	 @Test
	public void test1_1() {
		byte[] b1 = MyByte.binToBytes("1000010000010");
		byte[] b2 = MyByte.binToBytes("0100001000110");
		//byte[] b3 = MyByte.orBits(b1, b2);
		byte[] b3 = MyByte.redBits(b1, b2);
		System.out.println("-2-" + MyByte.bytesToBin(b3));

	} 
	 
}
